<?php
class NewsController extends BootstrapController
{
	public function indexAction()
	{
		$auth = CF_Auth::getInstance();
		if(!$auth->has()) 
			$this->getResponse()
				->getHeader()
				->redirect('http://localhost:10088/icafe/public/index/user');
				
		$newsTable = new Table_News();
		$list = $newsTable->select()->getAll();
		
		$this->getView()->parse('LIST', $list);
	}
	
	public function listAction()
	{
		
	}
	
	public function detailAction()
	{
		
	}
}